package com.hmdp.utils;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 5L;
    public static final Long LOGIN_USER_TTL = 36000L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L;
    public static final String CACHE_SHOP_KEY = "cache:shop:";
    public static final String CACHE_SHOPTYPE_KEY = "cache:type:shop:";

    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;
    public static final String LOCK_SHOP_VALUE = "1";

    public static final String SECKILL_STOCK_KEY = "seckill:stock:";
    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String BLOG_LIKED_CACHE = "blog:liked:cache";
    public static final String BLOG_LIKED_CACHE_GROUP = "blog:liked:cache:group";
    public static final String BLOG_LIKED_CACHE_GROUP_CONSUMER = "blog:liked:cache:consumer";
    public static final String BLOG_LIKED_CACHE_TEMPORARY_STORAGE = "blog:liked:cache:temporary:storage";

    public static final String FOLLOW_BLOG_USER_ID = "blog:follow:user:id:";

    public static final String BUY_VOUCHER_USER_ID = "buyUser:voucher:";
    //redis消息队列中的消息名称
    public static final String VOUCHER_ORDER_TASK = "voucher:order:";
    //redis消息队列中的消费组名称
    public static final String VOUCHER_ORDER_TASK_CONSUMER_GROUP = "voucher:order:consumer:group:";
    public static final String VOUCHER_ORDER_TASK_CONSUMER_NAME = "voucher:order:consumer:";

    public static final String FEED_KEY = "feed:";
    public static final String SHOP_GEO_KEY = "shop:geo:";
    public static final String USER_SIGN_KEY = "sign:";
    public static final Integer COUNTE_BIT=32;
}
